﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
namespace XenoStudio
{
    public class XenoControl : Control
    {
        public Image GetImage(string name)
        {
            System.Reflection.Assembly thisExe;
            thisExe = System.Reflection.Assembly.GetExecutingAssembly();
            System.IO.Stream file =
                thisExe.GetManifestResourceStream("QuantumEngine.Resource." + name);
            if (file == null)
            {
                return null;
            }
            return Image.FromStream(file);
        }
    }
}
